package com.by.orders.mapper;

import com.by.orders.entity.dto.OrderDto;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {
    /**
     * 保存订单
     * @param order
     * @return
     */
    int saveOrder(OrderDto order);

    /**
     * 查询最大编码
     * @return
     */
    String selectMaxOrderCode();
}
